// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import iView from 'iview';
import store from './store';
import '../src/css/index.less';
/* import 'iview/dist/styles/iview.css'; */
import http from '@/libs/httpUtils';
import util from '@/libs/util';

// 代码格式化
// Vue.use(VueCodemirror);

// echarts引入

import echarts from 'echarts'
// 代码格式化工具
// import VueCodemirror from 'vue-codemirror'
// import 'codemirror/lib/codemirror.css'

Vue.config.productionTip = false;
Vue.use(iView);

// 挂载全局
Vue.prototype.$http = http;
Vue.prototype.isAuth = util.isAuth; // 引入echarts
Vue.prototype.$echarts = echarts // 引入组件

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App),
  components: {App},
  template: '<App/>'
});
